From 2c55f418cd4b18f49a3b501fd9e1a8562bee84be Mon Sep 17 00:00:00 2001 From: oliskoli Date: Wed, 30 Aug 2006 20:23:24 +0000 Subject: [PATCH] Force usage of common gbfile api. --- gpsbabel/format_skeleton.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/gpsbabel/format_skeleton.c b/gpsbabel/format_skeleton.c index 551d1534c..82285d916 100644 --- a/gpsbabel/format_skeleton.c +++ b/gpsbabel/format_skeleton.c @@ -35,7 +35,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA */ - + #include "defs.h" #include @@ -60,20 +60,28 @@ arglist_t format_skeleton_args[] = { static void format_skeleton_rd_init(const char *fname) { -// fin = xfopen(fname, "r", MYNAME); +// fin = gbfopen(fname, "r", MYNAME); } static void format_skeleton_rd_deinit(void) { -// fclose(fin); +// gbfclose(fin); } static void format_skeleton_read(void) { // your special code to extract waypoint, route and track -// information from file "fin" +// information from gbfile "fin" +// +// Sample text-file read code: +// char *s; +// while ((s = gbfgetstr(fin))) { +// do_anything(s); +// } +// +// // For waypoints: // while (have waypoints) { // waypoint = waypt_new() @@ -99,13 +107,13 @@ format_skeleton_read(void) static void format_skeleton_wr_init(const char *fname) { -// fout = xfopen(fname, "w", MYNAME); +// fout = gbfopen(fname, "w", MYNAME); } static void format_skeleton_wr_deinit(void) { -// fclose(fout); +// gbfclose(fout); } static void -- 2.30.2